package club325.webchat.model;

import java.io.Serializable;

@SuppressWarnings("serial")
public class ComplainBean implements Serializable
{
	int id;
	String complainOwner = null;
	String complainObject = null;
	String complainReason = null;

	public String getComplainObject()
	{
		return complainObject;
	}

	public void setComplainObject(String complainObject)
	{
		this.complainObject = complainObject;
	}

	public String getComplainReason()
	{
		return complainReason;
	}

	public void setComplainReason(String complainReason)
	{
		this.complainReason = complainReason;
	}

	public String getComplainOwner()
	{
		return complainOwner;
	}

	public void setComplainOwner(String complainOwner)
	{
		this.complainOwner = complainOwner;
	}
	
	public String getShortTheme()
	{
		if(complainReason.length()<15)
			return complainReason;
		else
		{
			return new String(complainReason.substring(0,14)+"..."); 
		}
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}
}
